<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>花样链接卡</title>
    <style>
        body {
            margin: 50px;
            border: 2px solid black;
            width: 346px;
            height: 346px;

        }

        a {
            display: block;
            width: 100px;
            height: 100px;
            text-decoration: none;
            text-align: center;
            line-height: 100px;
            color: white;
            background-color: rgb(252, 101, 181);
            font-size: 18px;
            text-align: center;
            border: 1px solid black;
        }

        a:hover {
            background-color: rgb(96, 96, 252);
        }

        .a {
            display: inline-block;
            margin-left: 20px;
            margin-top: 20px;
        }

        .b {
            display: inline-block;
            float: right;
            margin-right: 20px;
            margin-top: 20px;
        }

        .d {
            display: inline-block;
            margin-left: 20px;
        }

        .e {
            display: inline-block;
            float: right;
            margin-right: 20px;
        }

        .c {
            margin-left: 122px;
        }
    </style>
</head>

<body>

    <div class="a"><a href="">链接1</a></div>
    <div class="b"><a href="">链接2</a></div>
    <div class="c"><a href="">链接5</a></div>
    <div class="d"><a href="">链接3</a></div>
    <div class="e"><a href="">链接4</a></div>
</body>

</html>